#!/usr/bin/python
# -*- coding: UTF-8 -*-
 
import math
for i in range(5000000): 
  x=int(math.sqrt(i+100))  #转化为整型值
  y=int(math.sqrt(i+268))
  if((x*x==i+100)and(y*y==i+268)): #判断整型后x的平方是否与未开方前相等
   print i
